<div class="panel panel-default panel-intro">

    <div class="panel-heading">
        {:build_heading(null,FALSE)}
        <ul class="nav nav-tabs" data-field="status">
            <li class="active"><a href="#t-all" data-value="" data-toggle="tab">{:__('All')}</a></li>
        </ul>
    </div>

    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="one">
                <div class="widget-body no-padding">
                    <div id="toolbar" class="toolbar">
                        {:__("total moeny: $")}<span id="money"></span>&ensp;{:__("total nums:")}<span id="totalNums"></span>
                    </div>
                    <table id="table" class="table table-striped table-bordered table-hover table-nowrap"
                           data-operate-edit="false" 
                           data-operate-del="false" 
                           data-operate-addtabs="false" 
                           data-show-toggle="false" data-show-columns="false"
                           width="100%">
                    </table>

                </div>
            </div>

        </div>
    </div>
</div>

<script id="customformtpl" type="text/html">
    <form action="" class="form-commonsearch">
        <div style="border-radius:2px;margin-bottom:10px;padding:15px 20px;">
            <div class="row">
                <div class="col-xs-12 col-sm-6 col-md-3 form-group">
                    <label class="control-label col-xs-12 col-sm-3" style="line-height: 30px">{:__('Code')}</label>
                    <div class="col-xs-12 col-sm-8">
                        <input class="operate" type="hidden" data-name="storage.code" value="="/>
                        <input class="form-control operate"  type="text" name="storage.code" placeholder="请输入查找的标题" value=""/>
                    </div>
                </div>
                <div class="col-xs-12 col-sm-6 col-md-3 form-group {:$auth->check('ykjp/summary/purchase/getWarehose')?'':'hide'}">

                    <label class="control-label col-xs-12 col-sm-3" style="line-height: 30px">{:__('Supplier')}</label>
                    <div class="col-xs-12 col-sm-8">
                        <input class="operate" type="hidden" data-name="storage.supplier_id" value="="/>
                        <input class="form-control selectpage" data-source="ykjp/summary/purchase/supplier" data-primary-key="id" data-field="name" type="text" name="storage.supplier_id" value=""/>
                    </div>

                </div>
                <div class="col-xs-12 col-sm-6 col-md-3 form-group {:$auth->check('ykjp/summary/purchase/product')?'':'hide'}">

                    <label class="control-label col-xs-12 col-sm-3" style="line-height: 30px">{:__('Product')}</label>
                    <div class="col-xs-12 col-sm-8">
                        <input class="operate" type="hidden" data-name="product_id" value="="/>
                        <input class="form-control selectpage" data-source="ykjp/summary/purchase/product" data-primary-key="id" data-field="name" type="text" name="product_id" placeholder="请输入查找的标题" value=""/>
                    </div>

                </div>
                <div class="col-xs-12 col-sm-6 col-md-3 form-group">
                    <label class="control-label col-xs-12 col-sm-3" style="line-height: 30px">{:__('Inbound_type')}</label>
                    <div class="col-xs-12 col-sm-8">
                        <input type="hidden" class="operate" data-name="storage.inbound_type" value="="/>
                        <select name="storage.inbound_type" class="form-control">
                            <option value="0">{:__("inbound_type 0")}</option>
                            <option value="1">{:__("inbound_type 1")}</option>
                        </select>
                    </div>
                </div>


                <div class="col-xs-12 col-sm-6 col-md-3 form-group">
                    <label class="control-label col-xs-12 col-sm-3" style="line-height: 30px">{:__('Createtime')}</label>
                    <div class="col-xs-12 col-sm-6">
                        <input type="hidden" class="operate" data-name="createtime" value="RANGE"/>
                        <input type="text" class="form-control datetimerange datetimepicker" name="createtime" value=""/>
                    </div>
                </div>

                <div class="col-xs-12 col-sm-6 col-md-4 form-group {:$auth->check('ykjp/summary/purchase/getWarehose')?'':'hide'}">

                    <label class="control-label col-xs-12 col-sm-2" style="line-height: 30px">{:__('Ware')}</label>
                    <div class="col-xs-12 col-sm-8">
                        <div class="form-inline" data-toggle="cxselect" data-selects="warehouse_id,partition_id">
                            <div class="col-xs-6">
                                <input class="operate" type="hidden" data-name="warehouse_id" value="="/>  
                                <select class="warehouse_id form-control" name="warehouse_id" data-url="ykjp/summary/purchase/getWarehose?type=ware">
                                </select>
                            </div>
                            <div class="col-xs-6">
                                <input class="operate" type="hidden" data-name="partition_id" value="="/>
                                <select class="partition_id form-control" name="partition_id" data-url="ykjp/summary/purchase/getWarehose" data-query-name="id">
                                </select>
                            </div>
                        </div>

                    </div>

                </div>
                <div class="col-xs-12 col-sm-6 col-md-3 form-group">
                    <div class="row">
                        <label class="control-label col-xs-12 col-sm-1" style="line-height: 30px"></label>
                        <div class="col-xs-3">
                            <input type="submit" class="btn btn-success btn-block" value="提交"/>
                        </div>
                        <div class="col-xs-3">
                            <input type="reset" class="btn btn-primary btn-block" value="重置"/>
                        </div>

                    </div>
                </div>
            </div>
        </div>
    </form>
</script>